﻿using System.ComponentModel;
using System.Runtime.Serialization;

namespace Silverlight.Training.Client.Common
{
    [DataContract(Namespace=ServiceConstants.ServiceNamespace)]
    public class NotifyPropertyChangedBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = PropertyChanged;
            if ((propertyChanged != null))
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
